package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 商品上传接口错误提示业务对象 ae_product_post_error
 *
 * @author erp
 * @date 2023-04-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AeProductPostErrorBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 错误代码
     */
    @NotBlank(message = "错误代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String errorCode;

    /**
     * 错误原因
     */
    @NotBlank(message = "错误原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String errorReason;

    /**
     * 解决方案
     */
    @NotBlank(message = "解决方案不能为空", groups = { AddGroup.class, EditGroup.class })
    private String solution;


}
